<template>
  <Button type="primary" @click="handleOpen">打开Modal</Button>
</template>

<script setup lang="ts">
import { Button, Modal } from "leisure-lib";
import content from "./content4.vue";

const handleOpen = () => {
  Modal.open(content, { title: "新建数据", width: 550, footer: false }).then(
    (res) => {
      console.log(res);
    }
  );
};
</script>

<style scoped></style>
